import api from './index'
import { axios } from '@/utils/request'

/* 团长上线 */
export function postShopInfoApprove(parameter) {
  return axios({
    url: api.ShopInfoApprove,
    method: 'put',
    data: parameter
  })
}

/* 团长下线 */
export function postShopInfoOffline(parameter) {
  return axios({
    url: api.ShopInfoOffline,
    method: 'put',
    data: parameter
  })
}

/* 提现审批 */
export function postWithdrawalApprove(parameter) {
  return axios({
    url: api.WithdrawalApprove,
    method: 'put',
    data: parameter
  })
}

/* 提现操作*/
export function getWithdrawal(parameter) {
  return axios({
    url: api.Withdrawal,
    method: 'post',
    data: parameter
  })
}

/* 初始化*/
export function PutShopInfoBatchInit() {
  return axios({
    url: api.ShopInfoBatchInit,
    method: 'put'
  })
}